package com.wkbb.sports.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wkbb.common.handler.JsonUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 上课表
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class HlifeBanner implements Serializable {

    @ApiModelProperty(value = "编号")
    private Long id;
    @ApiModelProperty(value = "擂台ID")
    private Long arenaId;
    @ApiModelProperty(value = "图片地址")
    private String logo;
    @ApiModelProperty(value = "banner名称")
    private String name;
    @ApiModelProperty(value = "状态（1：生效  0：未生效）")
    private Boolean enable;
    @ApiModelProperty(value = "排序 值越小越前")
    private Integer sort;
    @ApiModelProperty(value = "类型 1跳绳")
    private Integer type;
    @ApiModelProperty(value = "上架终端：1学生 2家长 3教师 4擂台")
    private Integer terminal;
    @ApiModelProperty(value = "跳转链接   action:ssl(则跳转到时时练小程序)  ")
    private String url;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    public static void main(String[] args) {
        HlifeBanner banner = new HlifeBanner();
        banner.setArenaId(1L);
        banner.setLogo("https://qiniu.childrenonline.cn/Fin5cd36X2FCZOPEaNhU0qZCpq-x");
        banner.setName("轮播图名称");
        banner.setEnable(true);
        banner.setTerminal(4);
        System.out.println(JsonUtil.objectToJson(banner));
    }
}
